<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_元素溢出处理</title>
    <style>
        .overflow{
            width: 200px;
            height: 200px;
            background-color: yellow;
            /*overflow: visible;*/ /*默认值，溢出可见*/
            overflow: hidden; /*溢出隐藏*/
            overflow: scroll; /*溢出滚动条*/
            overflow: auto; /*溢出的方向自动显示拖拽条*/
        }
        .txt{
            background-color: yellow;
            width: 300px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
<div class="txt">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto assumenda beatae culpa dolor impedit incidunt nobis reprehenderit repudiandae, tenetur vel. Aliquid esse illo iusto molestiae mollitia non sunt vero vitae!
</div>
<div class="overflow">
    <img src="img/1.png" alt="">
</div>
</body>
</html>